package top.yueyazhui.data_scope.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yueyazhui.data_scope.entity.User;
import top.yueyazhui.data_scope.service.IUserService;

import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author yueyazhui
 * @since 2022-08-15
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    IUserService userService;

    @GetMapping("/")
    public List<User> getAllUser(User user) {
        return userService.getAllUser(user);
    }

}
